import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
import Login from '@/components/login/Login';
import BillingManage from '@/components/billing/BillingManage';
import ConsumerBilling from '@/components/billing/ConsumerBilling';
import ReservationsBilling from '@/components/billing/ReservationsBilling';
import InpatientDepositBilling from '@/components/billing/InpatientDepositBilling';
import ChargeBillManage from '@/components/billing/ChargeBillManage';
import Consumption from '@/components/billing/charge-bill/Consumption';
import ChargeDetail from '@/components/billing/charge-bill/ChargeDetail';
import CustomerAccountManage from '@/components/customer-account/CustomerAccountManage';
import RefundStorage from '@/components/customer-account/RefundStorage';
import AddProduct from '@/components/billing/consumer-billing/AddProduct';
import AddPackage from '@/components/billing/consumer-billing/AddPackage';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/billing-manage',
      name: 'BillingManage',
      component: BillingManage
    },
    {
      path: '/consumer-billing/:registerId',
      name: 'ConsumerBilling',
      props: true,
      component: ConsumerBilling
    },
    {
      path: '/reservations-billing',
      name: 'ReservationsBilling',
      component: ReservationsBilling
    },
    {
      path: '/inpatient-deposit-billing',
      name: 'InpatientDepositBilling',
      component: InpatientDepositBilling
    },
    {
      path: '/charge-bill-manage',
      name: 'ChargeBillManage',
      component: ChargeBillManage
    },
    {
      path: '/consumption',
      name: 'Consumption',
      component: Consumption
    },
    {
      path: '/charge-detail',
      name: 'ChargeDetail',
      component: ChargeDetail
    },
    {
      path: '/customer-account-manage',
      name: 'CustomerAccountManage',
      component: CustomerAccountManage
    },
    {
      path: '/refund-storage',
      name: 'RefundStorage',
      component: RefundStorage
    },
    {
      path: '/add-product',
      name: 'AddProduct',
      component: AddProduct
    }, {
      path: '/add-package',
      name: 'AddPackage',
      component: AddPackage
    }
  ]
})
